package com.atguigu.gulimall.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication
@MapperScan("com.atguigu.gulimall.order.dao")  // 如果 mapper 没有在 启动类的扫描范围下  就可以用该注解自定义
@EnableRabbit    // 开启 rabbitmq支持
@EnableFeignClients
@EnableAspectJAutoProxy(exposeProxy = true) // 暴露代理对象
public class GulimallOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallOrderApplication.class, args);
    }

}
